<extend name="Public/base" />
<block name="body">
    <blockquote>
    </blockquote>
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>应用列表</h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn btn-default" href="{:U('Appmanagement/add')}">新 增</a>
        </div>
    </div>
    <div class="margin-top-xs alert alert-danger" role="alert">审核通过的应用不会立马生效，需要api接口服务重新部署才能生效~</div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>应用标识</th>
                <th>应用名称</th>
                <th>应用类别</th>
                <th>appkey</th>
                <th>环境</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
                <notempty name="_list">
                    <volist name="_list" id="vo">
                        <tr>
                            <td>{$vo.id} </td>
                            <td><a href="{:U('Appmanagement/review',array('id'=>$vo['id']))}">{$vo.appid}</a></td>
                            <td>{$vo.appname}</td>
                            <td>{$vo.apptype}</td>
                            <td>{$vo.appkey}</td>
                            <td>{$vo.appenvironment}</td>
                            <td>{$vo.status|get_app_status}</td>
                            <td>
                              <eq name="vo['status']" value="1">
                                <a href="{:U('Appmanagement/review',array('id'=>$vo['id']))}" class="btn btn-primary">审核</a>
                              </eq>
                              <a href="{:U('Appmanagement/del',array('id'=>$vo['id']))}" class="confirm ajax-get btn btn-warning">删除</a>
                            </td>
                        </tr>
                    </volist>
                    <else/>
                    <td colspan="9" class="text-center"> 一个应用都没有~ </td>
                </notempty>
            </tbody>
        </table>
    </div>
    <!--<div class="page">
        {$_page}
    </div>-->
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
</block>
